﻿using Airborne.ScrumPoker.Module.Converters;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace Airborne.ScrumPoker.Module.Tests.Converters
{
    [TestClass]
    public class BoolInverterTestFixture
    {
        [TestMethod]
        public void BoolInverterConvertsTrueTest()
        {
            BoolInverter converter = new BoolInverter();
            object value = converter.Convert(true, typeof(bool), null, null);

            Assert.IsFalse((bool)value);
        }

        [TestMethod]
        public void BoolInverterConvertsFalseTest()
        {
            BoolInverter converter = new BoolInverter();
            object value = converter.Convert(false, typeof(bool), null, null);

            Assert.IsTrue((bool)value);
        }
    }
}
